package cn.appsys.tools;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.appsys.service.devuser.DevUserService;

public class SpringUtils {
	private static ApplicationContext ctx;
	
	static {
		ctx = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
	}
	public static Object getBean(String name){
		return ctx.getBean(name);
	}
}
